package Jche.Zuoye.Laoshu;

public class Pet {
    private String name;
    private  int tili=5;

    public Pet() {

    }

    public Pet(String name, int tili) {
        this.name = name;
        this.tili = tili;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getTili() {
        return tili;
    }

    public void setTili(int tili) {
        this.tili = tili;
    }
    public void tl(){
        System.out.println("体力："+tili);
    }
}
